package com.shu.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.Action;
import com.shu.service.StudentService;

@Controller
public class addStudentAction {
	
	@Autowired
	private StudentService studentService;
	
	private String name;
	private String course;
	private int score;
	
	public String execute() {
		studentService.addStudent(name, course, score);
		return Action.SUCCESS;
		
		
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}


}
